<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <!-- reduce map 迭代器，有什么不同 ①.实现函数：同时使⽤ reduce map 迭代器，
      让数组内所有的 偶数求和 ②.实现函数：只使⽤ reduce 求奇数之和 -->
    <script>
      let arr = [2, 5, 6, 48, 3, 4, 56, 48, 43, 98]
      arr.map(res => {
        let num = 0
        if (res % 2 == 0) {
          console.log(res)
        }
      })
    </script>
  </body>
</html>
